package com.example.boot.modules.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.example.starter.mybatis.base.MultiTenantEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 *
 * @author 王令
 * @since 2022-08-05
 */
@Data
@EqualsAndHashCode(callSuper = true, onlyExplicitlyIncluded = true)
@ToString(callSuper = true)
@Accessors(chain = true)
@TableName(value = "sys_user")
public class User extends MultiTenantEntity {

    /**
     * 用户名
     */
    private String username;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 密码
     */
    private String password;

    /**
     * 性别
     */
    private Integer gender;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 头像url
     */
    private String avatar;

    /**
     * 锁定
     */
    private Boolean nonLocked;

    /**
     * 状态
     */
    private Boolean enabled;

}
